package com.itheima.test6;

import java.util.concurrent.Callable;

/**
 * @Author:gy
 * @Date: 2025/09/01 11:15
 * @Description:
 */
public class MyCallable<S> implements Callable<String> {
    @Override
    public String call() throws Exception {
        for (int i = 0; i < 100; i++) {
            System.out.println(Thread.currentThread().getName() + " " + i);
        }
        return "线程执行完毕";
    }
}
